<template>
  <!-- div和img是行内标签，同一行 -->
  <div class="tab-bar-item">
    <slot name="item-icon"></slot>
    <slot name="item-text"></slot>
    <!-- <img src="@/assets/img/tabbar/home.svg" alt />
    <div>首页</div> -->
  </div>
</template>

<script>
export default {

}
</script>

<style>
/* 单个选项的样式 */
.tab-bar-item {
  flex: 1;
  text-align: center;
  height: 49px;
  width: 14px;
  font-size: 14px;
}
/* 设置图片大小 */
.tab-bar-item img {
  height: 24px;
  width: 24px;
  margin-top: 3px;
  vertical-align: middle;
}
</style>